Platform

expect object Platform

Allows retrieving Platform specific information.

actual object Platform
actual object Platform
actual object Platform

Properties

Link copied to clipboard
expect val isBrowser: Boolean

Whether this test runs in the browser.

actual val isBrowser: Boolean
actual val isBrowser: Boolean = false
actual val isBrowser: Boolean = false
Link copied to clipboard
expect val isJs: Boolean

Whether this test runs in JS.

actual val isJs: Boolean = true
actual val isJs: Boolean = false
actual val isJs: Boolean = false
Link copied to clipboard
expect val isJvm: Boolean

Whether this test runs on the JVM.

actual val isJvm: Boolean = false
actual val isJvm: Boolean = true
actual val isJvm: Boolean = false
Link copied to clipboard
expect val isNative: Boolean

Whether this test runs in a native target.

actual val isNative: Boolean = false
actual val isNative: Boolean = false
actual val isNative: Boolean = true
Link copied to clipboard
expect val isNode: Boolean

Whether this test runs in NodeJS.

actual val isNode: Boolean
actual val isNode: Boolean = false
actual val isNode: Boolean = false